<?php slot('contents') ?>
<script type="text/javascript" src="/web/js/product_overlay.js"></script>
<div class="breadcrumbs">
  <?php include_component('headerMenu', 'breadCrumbs') ?>
</div>
<table cellpadding="0" cellspacing="0">
  <tr>
    <td class="first" align="left" valign="middle"><h1>DeLuxe Saunauksed</h1></td>
  </tr>
  <tr>
    <td valign="top"><p><?php echo $category->getDescription() ?></p>
      <br />
      <br /></td>
  </tr>
  <tr>
    <td>
      <table cellpadding="0" cellspacing="0" class="categories" align="center" id="products-tbl">
        <?php foreach($pager->getResults() as $j => $product): ?>
        <?php if(!(($j + 1) % 2) || !(($j + 1) % 3)): ?>
        <td class="product-item-1"><div class="product-arrow"></div><div class="hover-label">
            <div class="product-bellow-descr"><?php echo $product->getButton() ?></div>
            <a href="<?php echo LinkGen::getInstance(LinkGen::PRODUCT)->link($product->getId()) ?>"><img src="/web/uploads<?php echo $product->getBrandPicture() ?>" class="product-image-re" id="product-door-<?php echo $j ?>" /></a></div>
            <?php if(isset($pictures[$product->getId()][0])): ?>
              <!--// Enlarged image -->
              <div id="overlay-product-door-<?php echo $j ?>" class="enlarge-layer">
                <a href="<?php echo LinkGen::getInstance(LinkGen::PRODUCT)->link($product->getId()) ?>"><img src="/web/uploads<?php echo $pictures[$product->getId()][0] ?>"></a>
                <div class="enlarge-button-layer"><span><?php echo $product->getButton() ?></span></div>
              </div>
              <!--// End of enlarged image -->
            <?php endif; ?>
        </td>
          <?php elseif((($j + 1) % 4) == 0): ?>
          <td class="product-item-2"><div class="product-arrow"></div><div class="hover-label">
            <div class="product-bellow-descr"><?php echo $product->getButton() ?></div>
            <a href="<?php echo LinkGen::getInstance(LinkGen::PRODUCT)->link($product->getId()) ?>"><img src="/web/uploads<?php echo $product->getBrandPicture() ?>" class="product-image-re"  id="product-door-<?php echo $j ?>" /></a></div>
            <?php if(isset($pictures[$product->getId()][0])): ?>
              <!--// Enlarged image -->
              <div id="overlay-product-door-<?php echo $j ?>" class="enlarge-layer">
                <a href="<?php echo LinkGen::getInstance(LinkGen::PRODUCT)->link($product->getId()) ?>"><img src="/web/uploads<?php echo $pictures[$product->getId()][0] ?>"></a>
                <div class="enlarge-button-layer"><span><?php echo $product->getButton() ?></span></div>
              </div>
              <!--// End of enlarged image -->
            <?php endif; ?>
          </td>
          <?php else: ?>
          <td class="product-item-3"><div class="product-arrow"></div><div class="hover-label">
            <div class="product-bellow-descr"><?php echo $product->getButton() ?></div>
            <a href="<?php echo LinkGen::getInstance(LinkGen::PRODUCT)->link($product->getId()) ?>"><img src="/web/uploads<?php echo $product->getBrandPicture() ?>" class="product-image-re"  id="product-door-<?php echo $j ?>" /></a></div>
            
            <?php if(isset($pictures[$product->getId()][0])): ?>
              <!--// Enlarged image -->
              <div id="overlay-product-door-<?php echo $j ?>" class="enlarge-layer">
                <a href="<?php echo LinkGen::getInstance(LinkGen::PRODUCT)->link($product->getId()) ?>"><img src="/web/uploads<?php echo $pictures[$product->getId()][0] ?>"></a>
                <div class="enlarge-button-layer"><span><?php echo $product->getButton() ?></span></div>
              </div>
              <!--// End of enlarged image -->
            <?php endif; ?>
          </td>
          <?php endif; ?>
          <?php if((($j + 1) % 4) == 0): ?>
        </tr>
        <tr>
          <?php endif; ?>
          <?php endforeach; ?>
        </tr>
      </table>
    </td>
  </tr>
</table>
<div style="margin-top: 20px"></div>
<?php end_slot() ?>
